﻿

using MauiApp1.Services;
using MauiApp1.View;
using MauiApp1.ViewModel;

namespace MauiApp1;

public static class MauiProgram
{

    public static MauiApp IServices { get; set; }
    public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		builder
			.UseMauiApp<App>()
			.ConfigureFonts(fonts =>
			{
				fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
				fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
			});
		builder.Services.AddTransient<ITest, Test>();
		builder.Services.AddSingleton<MainPage>();
		builder.Services.AddTransient<MainPageViewModel>();
		//builder.Services.AddSingleton<TestPage_1>();
  //      builder.Services.AddTransient<TestPage_1ViewModel>();

	  


        IServices = builder.Build();
		return IServices;

    }
}
